package com.rustic.server.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * 表[user]对应UpdateDTO类
 *
 * @author auto
 */

@Data
public class UserUpdatePasswordDTO {

    /**
     * 新密码
     */
    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "新密码", dataType = "String")
    private String password;

    @NotEmpty(message = "账号不能为空")
    @ApiModelProperty(value = "账号", dataType = "String", required = true)
    private String account;

    @Length(min = 4, message = "请输入验证码")
    @ApiModelProperty(value = "验证码", dataType = "String", required = true)
    private String captcha;

}
